﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="MyFrame.ascx.cs" Inherits="UserControl_MyFrame" %>
<style type="text/css">
    .style1
    {
        width: 100%;
    }
    .style2
    {
    }
</style>
<div>

    <table class="style1">
        <tr>
            <td bgcolor="#7D7D7D" class="style2">
                <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="Large" 
                    ForeColor="White" Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style2" height="150">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    DataKeyNames="MaBaiTraLoi" DataSourceID="LinqDataSource1" 
                    onselectedindexchanged="GridView1_SelectedIndexChanged">
                    <Columns>
                        <asp:CommandField ShowSelectButton="True" />
                        <asp:BoundField DataField="MaBaiTraLoi" HeaderText="MaBaiTraLoi" 
                            InsertVisible="False" ReadOnly="True" SortExpression="MaBaiTraLoi" />
                        <asp:BoundField DataField="MaNguoiDung" HeaderText="MaNguoiDung" 
                            SortExpression="MaNguoiDung" />
                        <asp:BoundField DataField="MaTinRaoVat" HeaderText="MaTinRaoVat" 
                            SortExpression="MaTinRaoVat" />
                        <asp:TemplateField HeaderText="NoiDungTraLoi" SortExpression="NoiDungTraLoi">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("NoiDungTraLoi") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("NoiDungTraLoi") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="ThoiGianTraLoi" HeaderText="ThoiGianTraLoi" 
                            SortExpression="ThoiGianTraLoi" />
                        <asp:BoundField DataField="Deleted" HeaderText="Deleted" 
                            SortExpression="Deleted" />
                    </Columns>
                </asp:GridView>
                <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
                    ContextTypeName="LinQ_RaoVatDataContext" TableName="BAI_TRA_LOIs">
                </asp:LinqDataSource>
            </td>
        </tr>
    </table>

</div>